package com.catersystem.zmy.catersystem.bean;

import java.util.List;

/**
 * Created by Administrator on 2017/12/7 0007.
 */

public class LatelyCompleteAllDishesBean {

    /**
     * id : 19
     * cname : 001
     * status : 退台
     * opentime : 1512626806
     * timestamp : 2017-12-07 14:15:13
     * detail_completed : [{"id":"33","item_name":"海鲜","spunit":"份","amount":"1.00","taste":"","status":"2",
     * "operatime":"1512626812"}]
     */

    private String id;
    private String cname;
    private String status;
    private String opentime;
    private String timestamp;
    private List<DetailCompletedBean> detail_completed;
    private int goScrollY;
    private int itemPosition;

    public int getItemPosition() {
        return itemPosition;
    }

    public void setItemPosition(int itemPosition) {
        this.itemPosition = itemPosition;
    }

    public int getGoScrollY() {
        return goScrollY;
    }

    public void setGoScrollY(int goScrollY) {
        this.goScrollY = goScrollY;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getOpentime() {
        return opentime;
    }

    public void setOpentime(String opentime) {
        this.opentime = opentime;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public List<DetailCompletedBean> getDetail_completed() {
        return detail_completed;
    }

    public void setDetail_completed(List<DetailCompletedBean> detail_completed) {
        this.detail_completed = detail_completed;
    }

    public static class DetailCompletedBean {
        /**
         * id : 33
         * item_name : 海鲜
         * spunit : 份
         * amount : 1.00
         * taste :
         * status : 2
         * operatime : 1512626812
         */

        private String id;
        private String item_name;
        private String spunit;
        private String amount;
        private String taste;
        private String status;
        private String operatime;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getItem_name() {
            return item_name;
        }

        public void setItem_name(String item_name) {
            this.item_name = item_name;
        }

        public String getSpunit() {
            return spunit;
        }

        public void setSpunit(String spunit) {
            this.spunit = spunit;
        }

        public String getAmount() {
            if (Float.parseFloat(amount) % 1 == 0) {
                return ((int) Float.parseFloat(amount)) + "";
            }
            return amount;
        }

        public void setAmount(String amount) {
            this.amount = amount;
        }

        public String getTaste() {
            return taste;
        }

        public void setTaste(String taste) {
            this.taste = taste;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getOperatime() {
            return operatime;
        }

        public void setOperatime(String operatime) {
            this.operatime = operatime;
        }
    }
}
